TextlessActionWidget
open class TextlessActionWidget(activeIcon: Identifier, inactiveIcon: Identifier, highlightedIcon: Identifier, activeNarration: Text, inactiveNarration: Text, activeSupplier: Supplier<Boolean>, pressAction: Consumer<TextlessActionWidget>) : CustomPressableWidget
A button widget that is 20x20 pixels and displays a sprite instead of a textual message
Author
fzzyhmstrs
Since
0.2.0
Parameters
activeIcon
Identifier - sprite id for active-but-not-hovered state
inactiveIcon
Identifier - sprite id for inactive/disabled state, controlled via activeSupplier
highlightedIcon
Identifier - sprite id for the active-and-hovered state
activeNarration
Text - the tooltip and narration for active states
inactiveNarration
Text - narration and tooltip to display if the button is inactive
activeSupplier
Supplier
pressAction
Consumer
Inheritors
Constructors
Link copied to clipboard
constructor(activeIcon: Identifier, inactiveIcon: Identifier, highlightedIcon: Identifier, activeNarration: Text, inactiveNarration: Text, activeSupplier: Supplier<Boolean>, pressAction: Consumer<TextlessActionWidget>)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard